<!--#include file="conn.asp"-->
<!--#include file="chkuser.asp"-->
<%
call adminRight(9)

if request("action")="EditEmail" then
	Set rs=server.CreateObject("ADODB.RECORDSET")
	sql="select top 1 * from WebSite_Description"
	rs.open sql,conn,2,3
	rs("title")=Replace_Text(request("title"))
	rs("keywords")=Replace_Text(request("keywords"))
	rs("description")=Replace_Text(request("description"))
	rs("bottom")=trim(request("bottom"))
	rs.update
	rs.close
	set rs=nothing
	alert("保存成功")
	Go("?showMsgStr=<br><b>网站设置信息已保存成功！</b>|parent|3000|500||")
end if
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>参数设置</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="frame_Toolbar" class="toolbarBg"> 
		<a href="javascript:self.history.back();" class="icoBtn_ct"><span class="btnIco btnBack"></span>返回</a> 
		<a href="javascript:self.location.reload();" class="icoBtn_ct"><span class="btnIco btnReload"></span>刷新</a> 
		<span class="split ftSplit" ></span>
      <div class="pageInfo right light_gray"></div>
    </div>
	<div id="MainContent">
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from WebSite_Description where id=1"
rs.open sql,conn,1,1
%>
<form method="POST" id="frmMail" name="frmMail" action="?action=EditEmail">
   <table class="cTable_2 table">
		<tr class="cTitle toolbarBg">
		  <td colspan="2"><div class="cLeftPadding">网站优化设置</div></td>
		</tr>
		<tr>
		  <td width="20%" align="right">网站标题：</td>
		  <td><input name="title" type="text" style="width:400px;" value="<%=rs("title")%>" /></td>
		</tr>
		<tr>
		  <td align="right">关键字词：</td>
		  <td><input name="keywords" type="text" style="width:400px;" value="<%=rs("keywords")%>" /></td>
		</tr>
		<tr>
		  <td align="right">站点描述：</td>
	      <td><textarea name="description" cols="80" rows="5"><%=rs("description")%></textarea></td>
		</tr>
		<tr>
		  <td align="right">网站底部信息：</td>
		  <td><textarea name="bottom" cols="80" rows="5"><%=rs("bottom")%></textarea>
	      <br>
	      (支持HTML)</td>
		</tr>
	</table> 
    <div id="cEndToolbar" class="toolbarBg">
      <div class="caButCase">
	  <input type="submit" name="btnSubmitMail" value="确 定" class="button" />
      </div>
    </div>
</form>
<%
rs.close
Set rs=nothing
%>
	</div>
</body>
</html>